<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<link rel="stylesheet" href="<%=path%>/css/manager/news3.css">
<script type="text/javascript" src="<%=path%>/js/manager/jquery-1.8.2.js"></script>
<script type="text/javascript" src="<%=path%>/js/jedate/jedate.js"></script>
<title>查看新闻</title>
</head>

<script type="text/javascript">
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[name="basContent"]', {
			cssPath : '<%=path%>/js/kindeditor-4.1.10/plugins/code/prettify.css',
			uploadJson : '<%=path%>/js/kindeditor-4.1.10/jsp/upload_json.jsp',
			fileManagerJson : '<%=path%>/js/kindeditor-4.1.10/jsp/file_manager_json.jsp',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
			}
		});
		prettyPrint();
	});
</script>
<body>
	<!--
			页面重复使用表
			新闻，要闻，公告通知；
			论坛管理：理事动态；
		-->
		<!--
        	作者：offline
        	时间：2016-12-22
        	描述：新闻内容头部（统一，部分二级字体颜色单独修改）
        -->
		<div class="news_div1">
			<div class="news_div1_div1">新闻中心管理</div>
			<div class="news_div1_div2">
				<a href="<%=path%>/newsctr/newslist.htm?pageIndex=1&pageSize=10&newsType=1" class="news_div1_div2_div1 <c:if test="${news.newsType==1}">ablack</c:if>">新闻动态</a>
				<a>|</a>
				<a href="<%=path%>/newsctr/newslist.htm?pageIndex=1&pageSize=10&newsType=2" class="news_div1_div2_div2 <c:if test="${news.newsType==2}">ablack</c:if>">近期要闻</a>
				<a>|</a>
				<a href="<%=path%>/newsctr/newslist.htm?pageIndex=1&pageSize=10&newsType=3" class="news_div1_div2_div3 <c:if test="${news.newsType==3}">ablack</c:if>">公告通知</a>
			</div>
		</div>
		<!--
        	作者：offline
        	时间：2016-12-22
        	描述：查看新闻（内容）
        -->
        <div class="news3_div2">
        <form action="" id="sform" method="post">
			<input type="hidden" name="condition" value="${news.condition}" /> <input
				type="hidden" id="pageIndex" name="pageInfo.pageIndex"
				value="${news.pageInfo.pageIndex}" /> <input type="hidden"
				id="pageSize" name="pageInfo.pageSize" value="${news.pageInfo.pageSize}" />
			<input type="hidden" id="newsType" name="newsType"
				value="${news.newsType}" /> <input type="hidden" id="markManage"
				name="markManage" value="3" /> <input type="hidden"  name="newsId"
				value="${news.newsId}" />
        	<div class="news3_div2_div1">
        		<span class="news3_div2_div1_sp1"><c:if test="${news.newsType==1}">新闻动态</c:if><c:if test="${news.newsType==2}">近期要闻</c:if><c:if test="${news.newsType==3}">公告通知</c:if><c:if test="${news.newsType==4}">理事动态</c:if>详情</span>
        	</div>
        	<div class="news3_div2_div2">
        		${news.newsTheme}
        		<input class="news3_div2_div2_in1" type="button" onclick="toManage()"/>
        	</div>
        	<div class="news3_div2_div3">发布时间：	<fmt:formatDate value="${news.newsPublisTime}"
								pattern="yyyy-MM-dd HH:mm:ss" /></div>
        	<div class="news3_div2_div4">
        		${news.newsContent}
        	</div>
        	<div class="news3_div2_in1s">
        		<input class="news3_div2_in1" type="button" value="返回列表" onclick="back()" />
        	</div>
        	</form>
        </div>
</body>
<script type="text/javascript">
//提交验证
function toManage(){
	
	$("#markManage").val(2);
	$("#sform").attr("action", "tonewsmange.htm");
	$("#sform").submit();
}
//返回事件
function back(){
	$("#markManage").val(0);
	$("#sform").attr("action", "newslist.htm");
	$("#sform").submit();
}

</script>
</html>

